<?php
/**
 * Created by PhpStorm.
 * User: tangping
 * Date: 16/4/24
 * Time: 上午12:34
 */

$loader = new \Phalcon\Loader();
$loader->registerNamespaces(
    array(
        'Admin' => __DIR__  . '/../apps/admin/',
        'Admin\Controllers' => __DIR__  . '/../apps/admin/controllers/',
        'Admin\Controllers\Model' => __DIR__  . '/../apps/admin/models/',
        'Frontend' => __DIR__  . '/../apps/frontend/',
        'Frontend\Controllers' => __DIR__  . '/../apps/frontend/controllers/',
        'Frontend\Models' => __DIR__  . '/../apps/frontend/models/',
        'Library' => __DIR__  . '/../library/',
        'Plugins' => __DIR__  . '/../plugins/',
        'Models'  =>__DIR__.'/../models/',
        'Events'   =>__DIR__.'/../events/',
        'Server'  =>__DIR__.'/../server/',
        'Config' => __DIR__  ,

    )
)->register();